Recursively move autocleanups to their header files
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 10 Nov 2015 14:11:04 +0000 (14:11 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Tue, 10 Nov 2015 14:11:04 +0000 (14:11 +0000)
Start from GtkAccelLabel and walk the tree downwards.

gtk/gtk-autocleanups.h
gtk/gtkaccellabel.h
gtk/gtklabel.h
gtk/gtkmenu.h
gtk/gtkmenushell.h

index f0328ab4a4b8c96049f2ca12850e41d57595c014..986695f1e6fe614bf0361b208b789ec136dd6290 100644 (file)
@@ -21,7 +21,6 @@
 
 #ifndef __GI_SCANNER__
 
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAccelLabel, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAccelMap, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAccessible, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkActionBar, g_object_unref)
@@ -106,17 +105,14 @@ G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkIconView, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkImage, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkInfoBar, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkInvisible, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkLabel, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkLayout, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkLevelBar, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkLinkButton, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkListStore, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkLockButton, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMenu, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMenuBar, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMenuButton, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMenuItem, g_object_unref)
-G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMenuShell, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMenuToolButton, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMessageDialog, g_object_unref)
 G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMountOperation, g_object_unref)
index c08f81b28d23f1400ef47fce991e11efe205f764..fa7ea5153261926248f155e84ee2d415ae404b98 100644 (file)
 #ifndef __GTK_ACCEL_LABEL_H__
 #define __GTK_ACCEL_LABEL_H__
 
-
 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
 #error "Only <gtk/gtk.h> can be included directly."
 #endif
 
 #include <gtk/gtklabel.h>
 
-
 G_BEGIN_DECLS
 
 #define GTK_TYPE_ACCEL_LABEL           (gtk_accel_label_get_type ())
@@ -111,6 +109,10 @@ gchar *    _gtk_accel_label_class_get_accelerator_label (GtkAccelLabelClass *kla
                                                         guint               accelerator_key,
                                                         GdkModifierType     accelerator_mods);
 
+#ifndef __GI_SCANNER__
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkAccelLabel, g_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GTK_ACCEL_LABEL_H__ */
index 424c8f3d7109eaff00a3981f738e7ed489f6dc7d..58ee9349982425b899bd6aa7c7a206d2cf21d13c 100644 (file)
@@ -25,7 +25,6 @@
 #ifndef __GTK_LABEL_H__
 #define __GTK_LABEL_H__
 
-
 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
 #error "Only <gtk/gtk.h> can be included directly."
 #endif
@@ -34,7 +33,6 @@
 #include <gtk/gtkwindow.h>
 #include <gtk/gtkmenu.h>
 
-
 G_BEGIN_DECLS
 
 #define GTK_TYPE_LABEL           (gtk_label_get_type ())
@@ -227,6 +225,10 @@ void         gtk_label_set_yalign (GtkLabel *label,
 GDK_AVAILABLE_IN_3_16
 gfloat       gtk_label_get_yalign (GtkLabel *label);
 
+#ifndef __GI_SCANNER__
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkLabel, g_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GTK_LABEL_H__ */
index bf81a895d0f8a4dbee0a95ce86ef0831e106fed1..f66200ada5fbd8b697e7fc63922f8acb31c658fa 100644 (file)
@@ -25,7 +25,6 @@
 #ifndef __GTK_MENU_H__
 #define __GTK_MENU_H__
 
-
 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
 #error "Only <gtk/gtk.h> can be included directly."
 #endif
@@ -33,7 +32,6 @@
 #include <gtk/gtkaccelgroup.h>
 #include <gtk/gtkmenushell.h>
 
-
 G_BEGIN_DECLS
 
 #define GTK_TYPE_MENU                  (gtk_menu_get_type ())
@@ -251,6 +249,9 @@ void     gtk_menu_set_reserve_toggle_size (GtkMenu  *menu,
 GDK_AVAILABLE_IN_ALL
 gboolean gtk_menu_get_reserve_toggle_size (GtkMenu  *menu);
 
+#ifndef __GI_SCANNER__
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMenu, g_object_unref)
+#endif
 
 G_END_DECLS
 
index af424b074d3348dbf2778545ac502406f034cc6d..34db130d3ea0ef596b1a348dd9ad047068983e21 100644 (file)
 #ifndef __GTK_MENU_SHELL_H__
 #define __GTK_MENU_SHELL_H__
 
-
 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
 #error "Only <gtk/gtk.h> can be included directly."
 #endif
 
 #include <gtk/gtkcontainer.h>
 
-
 G_BEGIN_DECLS
 
 #define GTK_TYPE_MENU_SHELL             (gtk_menu_shell_get_type ())
@@ -132,6 +130,10 @@ void       gtk_menu_shell_bind_model   (GtkMenuShell *menu_shell,
                                         const gchar  *action_namespace,
                                         gboolean      with_separators);
 
+#ifndef __GI_SCANNER__
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkMenuShell, g_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GTK_MENU_SHELL_H__ */